<html>
<hedd>
    <style>
        .xwtable {
            width: 100%;
            border-collapse: collapse;
            border: 1px solid #ccc;
        }
        .xwtable td {
            font-size: 12px;
            color: #333333;
            text-align: center;
            background: url(../table_top.jpg) repeat-x top center;
            border: 1px solid #ccc;
            font-weight: bold;
        }
        .xwtable tr {
            background: #fff;
            font-size: 12px;
            color: #666666;
            line-height: 30px;
        }
        .xwtable tr.alt-row {
            background: #f2f7fc;
        }
        .xwtable th{
              border: 1px solid #ccc;
        }
        .xwtable td {
            line-height: 30px;
            text-align: center;
{#            padding: 4px 10px 3px 10px;#}
            height: 18px;
            border: 1px solid #ccc;
        }
        .xwtable td:last-child {
            text-align: center;
        }
        .xwtable td a{
            color: #3690de;
            margin-right: 5px;
        }

    </style>
</hedd>
<body>
<div>
    <table class="xwtable">
        <tr class="alt-row">
            <th>学号</th>
            <th>学生姓名</th>
            <th>联系电话</th>
            <th>家庭住址</th>
            <th>操作</th>
        </tr>
        {% for i in sdulist %}
            <tr>
                <td> {{ i.id_card }}</td>
                <td>{{ i.name }}</td>
                <td>{{ i.phone }}</td>
                <td>{{ i.address }}</td>
                <td>
                    {#                    <input type="button" value="查看">#}
                    {#                    <input type="button" value="发邮件">#}
                    {#                    <input type="button" value="编辑">#}
                    {#                    <a href="{% url 'cakan' %}?id={{ i.id_card }}">查看</a>#}
                    <a href="{% url 'email' %}?id={{ i.id_card }}">发邮件</a>
                    <a href="{% url 'bianji' %}?id={{ i.id_card }}">编辑</a>
                </td>
            </tr>
        {% endfor %}
    </table>
</div>
</body>
</html>